import { DataTypes } from 'sequelize'
import sequelize from '../../config/db.js'

const Comment = sequelize.define('Comment', {
  articleId: {
    type: DataTypes.INTEGER,
    allowNull: false
  },
  author: {
    type: DataTypes.STRING,
    allowNull: false
  },
  content: {
    type: DataTypes.TEXT,
    allowNull: false
  }
}, {
  timestamps: true
})

export default Comment 